package com.ybkj.daijia.server.service.impl;

import com.ybkj.daijia.server.mapper.DriverLoginRecordMapper;
import com.ybkj.daijia.server.model.DriverLoginRecord;
import com.ybkj.daijia.server.service.DriverLoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DefaultDriverLoginRecordService implements DriverLoginRecordService {

    @Autowired
    private DriverLoginRecordMapper driverLoginRecordMapper;

    @Override
    public DriverLoginRecord selectByPrimaryKey(Long id) {
        return driverLoginRecordMapper.selectByPrimaryKey(id);
    }


    @Transactional(rollbackFor = Exception.class)
    public void insertRecord(DriverLoginRecord driverLoginRecord) {
        driverLoginRecordMapper.insertRecord(driverLoginRecord);
    }

}
